<template>
  <div>
    <div class="Menus">
      <div class="top-bar">
        <div class="logo">
          <nuxt-link to="" class="logo-url"><img src="~assets/img/logo2.gif" alt="logo" /></nuxt-link>
        </div>
        <h1 class="desc">
          Logs Book
        </h1>
        <div class="social">
          <p class=""><input type="text" placeholder="搜索你想找的内容" /><input type="button" value="Search" /></p>
          <p><a class="email-url mouse" href="mailto:colinwoo@colinwoo.com" rel="nofollow">ColinWoo@ColinWoo.com</a></p>
          <p><nuxt-link class="record-url mouse" to="http://www.beian.gov.cn/portal/registerSystemInfo?spm=5176.whcolinwoo.7y9jhqsfz.114.3f68f6ffrlCwDF">粤ICP备15089946号-2</nuxt-link></p>
          <p><nuxt-link class="record-url mouse" :to="{name:'ColinWoo-blog-stiemap'}">sitemap</nuxt-link></p>
          <p><nuxt-link class="about mouse" :to="{name:'ColinWoo-blog-about'}">关于我</nuxt-link></p>
        </div>
      </div>
      <div class="list">
        <nuxt-link class="items mouse" to="/">首页</nuxt-link >
        <nuxt-link  v-for="(items,index) in list" :key="index" class="items mouse" :to="{name:'ColinWoo-blog-article_list-category-category_id',params:{category_id:items.category_id}}">{{items.name}}</nuxt-link>
      </div>
    </div>
    <nuxt/>
  </div>
</template>
<script>
export default {
  created(){

      console.log(1111)
      this.list = this.$store.state.menus.menusList;

      setTimeout(() => {
        console.log(this.$store.state.menus.menusList)
      }, 3000);
  }
}
</script>
<style scoped>
/* html {
  font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  word-spacing: 1px;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: border-box;
  margin: 0;
}

.button--green {
  display: inline-block;
  border-radius: 4px;
  border: 1px solid #3b8070;
  color: #3b8070;
  text-decoration: none;
  padding: 10px 30px;
}

.button--green:hover {
  color: #fff;
  background-color: #3b8070;
}

.button--grey {
  display: inline-block;
  border-radius: 4px;
  border: 1px solid #35495e;
  color: #35495e;
  text-decoration: none;
  padding: 10px 30px;
  margin-left: 15px;
}

.button--grey:hover {
  color: #fff;
  background-color: #35495e;
} */

.Menus{
  height: 100vh;
  display: inline-block;
  width: 24%;
  /* border:solid 1px red; */
  padding-top:30px;
  vertical-align:top;
}
.Menus > .top-bar{
  height: 36%;
  width: 100%;
}
.Menus > .top-bar > .logo{
  width: 100%;
  height: 60%;
}
.Menus > .top-bar > .logo > .logo-url{
  width: 100%;
  height:100%;
  display: block;
}
.Menus > .top-bar > .logo > .logo-url > img{
  width: 150px;
  height:150px;
  display: block;
  margin:0 auto;
}
.Menus > .top-bar > .social{
  text-align: center;
  margin:20px auto;
}
/* .Menus > .top-bar > .social > .email{
  height: 30px;
  width: 36px;
  vertical-align:top;
} */
.social > p {
  margin-top: 10px;
}
.social > p:nth-child(4) ,  .social > p:nth-child(5){
  margin-top: 0px !important;
}
.Menus > .top-bar > .social > p >.email-url{
  font-size: 24px;
  font-weight: 200;
  color: #B2B2B2;
  line-height: 24px;
  padding: 0;
}
.Menus > .top-bar > .social > p >.record-url{
  font-size: 18px;
  font-weight: 200;
  color:#B2B2B2;
  line-height: 24px;
  padding: 0;
  display: block;
}
.Menus > .top-bar > .social > p > .about{
  font-size: 16px;
  font-weight: 200;
  color:#B2B2B2;
  line-height: 24px;
  padding: 0;
  display: block;
}
.Menus > .top-bar > .desc{
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  color:#404040;
}
.Menus > .top-bar > .logo > img{
  width: 100%;
  height: 100%;
}
.list{
  width: 70%;
  margin:80px auto;
}
.items{
  text-align: center;
  font-size: 24px;
  line-height: 24px;
  margin:20px 0;
  display: block;
  font-weight: 300;
  color:#404040;
}
.mouse:hover{
  color: #fb5353 !important;
}
</style>

